//
//  SimpleLabel.m
//  UI_NavigationCtrollerHomework
//
//  Created by dllo on 16/7/23.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SimpleLabel.h"

@implementation SimpleLabel

+ (instancetype)simpleLabelWithFrame:(CGRect)frame title:(NSString *)title {
      
      SimpleLabel *label = [[SimpleLabel alloc] initWithFrame:frame];
      
      label.text = title;
      label.textAlignment = NSTextAlignmentRight;
      
      return label;
}

+ (instancetype)simpleLabelWithFrame:(CGRect)frame title:(NSString *)title superView:(UIView *)superView {
      
      SimpleLabel *lebel = [SimpleLabel simpleLabelWithFrame:frame title:title];
      
      [superView addSubview:lebel];
      
      return lebel;
}

@end
